var a = require("../../common").minutesToTimeEl;

Component({
    properties: {
        simple: {
            type: Boolean,
            value: !1
        },
        data: {
            type: Object,
            value: null
        }
    },
    data: {
        showTaskInfo: !1
    },
    lifetimes: {
        ready: function() {
            var t = this.data.data;
            t.has_one_task && (t.has_one_task.limit_time_string = a(t.has_one_task.limit_time));
            var e = !1;
            1 === t.status ? t.has_one_task.order_id === t.order_id && (e = !0) : e = !0, this.setData({
                data: t,
                showTaskInfo: e
            });
        }
    }
});